<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="isKeepAlive"/>
    </keep-alive>
      <router-view v-if="!isKeepAlive"></router-view>
  </div>
</template>

<script>

export default {
  computed: {
    isKeepAlive () {
      return this.$route.meta.isKeepAlive
    }
  }
}
</script>
